<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>终止Promise链条</title>
</head>
<body>
<script>
  new Promise((resolve, reject) => {
    resolve('ok')
  }).then(value => {
    console.log(value)
  }).then(value => {
    console.log(111)
  }).then(value => {
    console.log(222)
    return new Promise(()=>{})//终止Promise链条
  }).then(value => {
    console.log(333)
  }).finally(value => {
    console.log('end')
  }).catch(reason => {
    console.log(reason)
  })
</script>
</body>
</html>